package com.hjc.answer.service.impl;

import com.hjc.answer.dao.StatisticsDAO;
import com.hjc.answer.model.GetPai;
import com.hjc.answer.model.StatisticsProj;
import com.hjc.answer.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/11/17
 * Time: 17:54
 * To change this template use File | Settings | File Templates.
 */
@Service
public class StatisticsServiceImpl implements StatisticsService {
    @Autowired
    private StatisticsDAO statisticsDAO;

    @Override
    public int statisInsert(StatisticsProj statisticsProj) {
        return statisticsDAO.statisInsert(statisticsProj);
    }

    @Override
    public List<StatisticsProj> queryStatic() {
        return statisticsDAO.queryStatic();
    }

    @Override
    public List<StatisticsProj> queryStaticById(String uid) {
        return statisticsDAO.queryStaticById(uid);
    }

    @Override
    public List<GetPai> query_pai() {
        return statisticsDAO.query_pai();
    }
}
